/**
 * ====================================================================
 *
 *  Copyright 1999-2004 The Apache Software Foundation
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of the Apache Software Foundation.  For more
 * information on the Apache Software Foundation, please see
 * .
 *
 * [Additional notices, if required by prior licensing conditions]
 *
 * 
 * @author Christian
 * @since
 * @version 
 * @Date 17.04.2014
 */
package de.sisoft.gcjack.communication;

/**
 *
 */
public class Constants {
    // TODO put these constants into strings.xml
    
    // ENCODING
    public static final String ISO_ENCODING = "ISO-8859-1";
    public static final String UTF_ENCODING = "UTF-8";

    // JSON NODE NAMES
    public static final String TAG_RETURNCODE = "returncode";
    public static final String TAG_USEDATA = "usedata";
    public static final String TAG_MESSAGE = "message";

    // JSON RETURNCODES
    public static final int JSON_SUCCESS = 1;
    public static final int JSON_NO_RESULT = 0;
    public static final int JSON_REQUIRED_FIELDS_MISSING = -1;
    public static int	USER_ALREADY_VOTED = 2;

    // JSON FIELD NAMES
    public static final String TAG_GCCODE = "gccode";
    public static final String TAG_GCNAME = "cache_name";
    public static final String TAG_GCTYPE = "cache_type";
    public static final String TAG_GCOWNER = "owner";
    public static final String TAG_GCDIFFICULTY = "difficulty";
    public static final String TAG_GCTERRAIN = "terrain";
    public static final String TAG_GCHIDDEN = "date_hidden";
    public static final String TAG_USERID = "user_ID";
    public static final String TAG_WOWFACTOR = "wow_factor";
    public static final String TAG_CREATIVITY = "creativity";
    public static final String TAG_RECOMMENDATION = "recommendation";
    public static final String TAG_COORDQUALITY = "coordinates";

    public static final String TAG_AVG_DIFFICULTY = "difficulty";
    public static final String TAG_AVG_TERRAIN = "terrain";
    public static final String TAG_AVG_CREATIVITY = "creativity";
    public static final String TAG_AVG_WOWFACTOR = "wow_factor";
    public static final String TAG_AVGCOORDQUALITY = "coordinates";
    public static final String TAG_NUMBERVOTINGS = "number_votings";
}
